Icon

sealed class Icon : ChipDecoration

Represents an Icon displayed before/after the chip's text. Icons are 18.dp tall and will be tinted with the SourceChip.Style.contentColour.

Inheritors

Types

Link copied to clipboard
data class Component(val content: @Composable RowScope.(Modifier) -> Unit) : ChipDecoration.Icon

Represents a composable function that displays an icon before/after the chip's text. The icon will be 18.dp tall and will be tinted with SourceChip.Style.contentColour if no color is set in the component.

Link copied to clipboard
data class Painter(val painter: Painter, val contentDescription: String? = null) : ChipDecoration.Icon

Represents a androidx.compose.ui.graphics.painter.Painter displayed before/after the chip's text. The icon will be 18.dp tall and will be tinted with SourceChip.Style.contentColour.

Link copied to clipboard
data class Vector(val imageVector: ImageVector, val contentDescription: String? = null) : ChipDecoration.Icon

Represents an ImageVector displayed before/after the chip's text. The icon will be 18.dp tall and will be tinted with SourceChip.Style.contentColour.

Properties

Link copied to clipboard
abstract val content: @Composable RowScope.(Modifier) -> Unit

The content to display. The provided modifier must be set on the content. The modifier is used to apply the correct size to the icon/image.

Link copied to clipboard
open override val height: Dp

The height of the icon/image.